# Maintainer: Caleb Maclennan <caleb@alerque.com>

_pkgname=moreorless
pkgname=python-moreorless
pkgver=0.4.0
pkgrel=6
pkgdesc='Python diff wrapper'
arch=(any)
url="https://github.com/thatch/$_pkgname"
license=(MIT)
depends=(python)
makedepends=(python-{build,installer,wheel}
             python-setuptools-scm)
_archive="$_pkgname-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_archive.tar.gz")
sha256sums=('85e19972c1a0b3a49f8543914f57bd83f6e1b10df144d5b97b8c5e9744d9c08c')
b2sums=('60e810352e13d4723b138b6bad78536994c9430b51feb5114d44738515e890143b2d69678bb0d2fa87c51e0918b4ef15a084bd466898f41a0055ca3f1372b619')

build(){
    cd "$_archive"
    python -m build -wn
}

package() {
    cd "$_archive"
    python -m installer -d "$pkgdir" dist/*.whl
}
